#include "byteio.h"
#include <assert.h>

unsigned char bytereader_fix_underflow_(bytereader* s)
{
	s->underflow(s);
	if(s->next != s->end)
		return *s->next++;
	assert(0);
	return 0;
}

void bytewriter_overflow_dummy(bytewriter* w, int b)
{
	// Do nothing
}

void bytewriter_flush_dummy(bytewriter* w)
{
	// Do nothing
}

int bytereader_underflow_dummy(bytereader* r)
{
	// Do nothing
	return 0;
}

void bytereader_update_dummy(bytereader* r)
{
	// Do nothing
}